// Thread.cpp: implementation of the Thread class.
//
//////////////////////////////////////////////////////////////////////
#include "StdAfx.h"
#include "Thread.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////


void Thread::start()
{
	hThread =(HANDLE)_beginthread(agent, 0, (void *)this);
}

HANDLE Thread::getThread()
{
	return hThread;
}

void Thread::run()
{
	cout << "Base Thread" << endl;
}

void Thread::agent(void *p)
{
	Thread *agt = (Thread *)p;
	agt->run();
}




